package com.yupi.springbootinit.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yupi.springbootinit.model.entity.Chart;

import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;

/**
* @author boss
* @description 针对表【chart(图表信息表)】的数据库操作Service
* @createDate 2024-01-16 18:18:31
*/
public interface ChartService extends IService<Chart> {

    boolean createAndInsert(Long id, List<Map<Integer, String>>  csvString);
    List<LinkedHashMap<String,Object>> selectChartRawData(Long id);

    /**
     * @param id
     * @param modifiedData
     * @return 更新行数
     */
    int upDateChartRawData(Long id,List<LinkedHashMap<String, Object>> modifiedData);
    int addIdCol(Long id);

}
